home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / Printing.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  18.2 KB  |  623 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Printing.a
  3. ;
  4. ;    Contains:    Print Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__PRINTING__') = 'UNDEFINED' THEN
  18. __PRINTING__ SET 1
  19.  
  20.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  21.     include 'Errors.a'
  22.     ENDIF
  23.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  24.     include 'Quickdraw.a'
  25.     ENDIF
  26.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  27.     include 'Dialogs.a'
  28.     ENDIF
  29.  
  30.  
  31. iPFMaxPgs                        EQU        128
  32. iPrPgFract                        EQU        120                    ;Page scale factor. ptPgSize (below) is in units of 1/iPrPgFract
  33. iPrPgFst                        EQU        1                    ;Page range constants
  34. iPrPgMax                        EQU        9999
  35. iPrRelease                        EQU        3                    ;Current version number of the code.
  36. iPrSavPFil                        EQU        -1
  37. iPrAbort                        EQU        $0080
  38. iPrDevCtl                        EQU        7                    ;The PrDevCtl Proc's ctl number
  39. lPrReset                        EQU        $00010000            ;The PrDevCtl Proc's CParam for reset
  40. lPrLineFeed                        EQU        $00030000
  41. lPrLFStd                        EQU        $0003FFFF            ;The PrDevCtl Proc's CParam for std paper advance
  42. lPrLFSixth                        EQU        $0003FFFF
  43. lPrPageEnd                        EQU        $00020000            ;The PrDevCtl Proc's CParam for end page
  44. lPrDocOpen                        EQU        $00010000
  45. lPrPageOpen                        EQU        $00040000
  46. lPrPageClose                    EQU        $00020000
  47. lPrDocClose                        EQU        $00050000
  48. iFMgrCtl                        EQU        8                    ;The FMgr's Tail-hook Proc's ctl number
  49. iMscCtl                            EQU        9                    ;The FMgr's Tail-hook Proc's ctl number
  50. iPvtCtl                            EQU        10                    ;The FMgr's Tail-hook Proc's ctl number
  51. ;     Error Codes moved to Errors.(hap) 
  52.  
  53. pPrGlobals                        EQU        $00000944            ;The PrVars lo mem area:
  54. bDraftLoop                        EQU        0
  55. bSpoolLoop                        EQU        1
  56. bUser1Loop                        EQU        2
  57. bUser2Loop                        EQU        3
  58. fNewRunBit                        EQU        2
  59. fHiResOK                        EQU        3
  60. fWeOpenedRF                        EQU        4                    ;Driver constants 
  61. iPrBitsCtl                        EQU        4
  62. lScreenBits                        EQU        0
  63. lPaintBits                        EQU        1
  64. lHiScreenBits                    EQU        $00000002            ;The Bitmap Print Proc's Screen Bitmap param
  65. lHiPaintBits                    EQU        $00000003            ;The Bitmap Print Proc's Paint [sq pix] param
  66. iPrIOCtl                        EQU        5
  67. iPrEvtCtl                        EQU        6                    ;The PrEvent Proc's ctl number
  68. lPrEvtAll                        EQU        $0002FFFD            ;The PrEvent Proc's CParam for the entire screen
  69. lPrEvtTop                        EQU        $0001FFFD            ;The PrEvent Proc's CParam for the top folder
  70. iPrDrvrRef                        EQU        -3
  71.  
  72. getRslDataOp                    EQU        4
  73. setRslOp                        EQU        5
  74. draftBitsOp                        EQU        6
  75. noDraftBitsOp                    EQU        7
  76. getRotnOp                        EQU        8
  77. NoSuchRsl                        EQU        1
  78. OpNotImpl                        EQU        2                    ;the driver doesn't support this opcode
  79. RgType1                            EQU        1
  80.  
  81. feedCut                            EQU        0
  82. feedFanfold                        EQU        1
  83. feedMechCut                        EQU        2
  84. feedOther                        EQU        3
  85. ; typedef SInt8                         TFeed
  86.  
  87.  
  88. scanTB                            EQU        0
  89. scanBT                            EQU        1
  90. scanLR                            EQU        2
  91. scanRL                            EQU        3
  92. ; typedef SInt8                         TScan
  93.  
  94. ;  A Rect Ptr 
  95. ; typedef struct Rect *                    TPRect
  96.  
  97. TPrPort                    RECORD 0
  98. gPort                     ds        GrafPort        ; offset: $0 (0)        ; The Printer's graf port.
  99. gProcs                     ds        QDProcs            ; offset: $6C (108)        ; ..and its procs
  100. lGParam1                 ds.l    1                ; offset: $A0 (160)        ; 16 bytes for private parameter storage.
  101. lGParam2                 ds.l    1                ; offset: $A4 (164)
  102. lGParam3                 ds.l    1                ; offset: $A8 (168)
  103. lGParam4                 ds.l    1                ; offset: $AC (172)
  104. fOurPtr                     ds.b    1                ; offset: $B0 (176)        ; Whether the PrPort allocation was done by us.
  105. fOurBits                 ds.b    1                ; offset: $B1 (177)        ; Whether the BitMap allocation was done by us.
  106. sizeof                     EQU *                    ; size:   $B2 (178)
  107.                         ENDR
  108. ; typedef struct TPrPort *                TPPrPort
  109.  
  110. ; typedef TPPrPort                         TPPrPortRef
  111.  
  112. ;  Printing Graf Port. All printer imaging, whether spooling, banding, etc, happens "thru" a GrafPort.
  113. ;  This is the "PrPeek" record. 
  114. TPrInfo                    RECORD 0
  115. iDev                     ds.w    1                ; offset: $0 (0)        ; Font mgr/QuickDraw device code
  116. iVRes                     ds.w    1                ; offset: $2 (2)        ; Resolution of device, in device coordinates
  117. iHRes                     ds.w    1                ; offset: $4 (4)        ; ..note: V before H => compatable with Point.
  118. rPage                     ds        Rect            ; offset: $6 (6)        ; The page (printable) rectangle in device coordinates.
  119. sizeof                     EQU *                    ; size:   $E (14)
  120.                         ENDR
  121. ; typedef struct TPrInfo *                TPPrInfo
  122.  
  123. ;  Print Info Record: The parameters needed for page composition. 
  124. TPrStl                    RECORD 0
  125. wDev                     ds.w    1                ; offset: $0 (0)
  126. iPageV                     ds.w    1                ; offset: $2 (2)
  127. iPageH                     ds.w    1                ; offset: $4 (4)
  128. bPort                     ds.b    1                ; offset: $6 (6)
  129. feed                     ds.b    1                ; offset: $7 (7)
  130. sizeof                     EQU *                    ; size:   $8 (8)
  131.                         ENDR
  132. ; typedef struct TPrStl *                TPPrStl
  133.  
  134. TPrXInfo                RECORD 0
  135. iRowBytes                 ds.w    1                ; offset: $0 (0)
  136. iBandV                     ds.w    1                ; offset: $2 (2)
  137. iBandH                     ds.w    1                ; offset: $4 (4)
  138. iDevBytes                 ds.w    1                ; offset: $6 (6)
  139. iBands                     ds.w    1                ; offset: $8 (8)
  140. bPatScale                 ds.b    1                ; offset: $A (10)
  141. bUlThick                 ds.b    1                ; offset: $B (11)
  142. bUlOffset                 ds.b    1                ; offset: $C (12)
  143. bUlShadow                 ds.b    1                ; offset: $D (13)
  144. scan                     ds.b    1                ; offset: $E (14)
  145. bXInfoX                     ds.b    1                ; offset: $F (15)
  146. sizeof                     EQU *                    ; size:   $10 (16)
  147.                         ENDR
  148. ; typedef struct TPrXInfo *                TPPrXInfo
  149.  
  150. TPrJob                    RECORD 0
  151. iFstPage                 ds.w    1                ; offset: $0 (0)        ; Page Range.
  152. iLstPage                 ds.w    1                ; offset: $2 (2)
  153. iCopies                     ds.w    1                ; offset: $4 (4)        ; No. copies.
  154. bJDocLoop                 ds.b    1                ; offset: $6 (6)        ; The Doc style: Draft, Spool, .., and ..
  155. fFromUsr                 ds.b    1                ; offset: $7 (7)        ; Printing from an User's App (not PrApp) flag
  156. pIdleProc                 ds.l    1                ; offset: $8 (8)        ; The Proc called while waiting on IO etc.
  157. pFileName                 ds.l    1                ; offset: $C (12)        ; Spool File Name: NIL for default.
  158. iFileVol                 ds.w    1                ; offset: $10 (16)        ; Spool File vol, set to 0 initially
  159. bFileVers                 ds.b    1                ; offset: $12 (18)        ; Spool File version, set to 0 initially
  160. bJobX                     ds.b    1                ; offset: $13 (19)        ; An eXtra byte.
  161. sizeof                     EQU *                    ; size:   $14 (20)
  162.                         ENDR
  163. ; typedef struct TPrJob *                TPPrJob
  164.  
  165. ;  Print Job: Print "form" for a single print request. 
  166. TPrint                    RECORD 0
  167. iPrVersion                 ds.w    1                ; offset: $0 (0)        ; (2) Printing software version
  168. prInfo                     ds        TPrInfo            ; offset: $2 (2)        ; (14) the PrInfo data associated with the current style.
  169. rPaper                     ds        Rect            ; offset: $10 (16)        ; (8) The paper rectangle [offset from rPage]
  170. prStl                     ds        TPrStl            ; offset: $18 (24)        ; (8)  This print request's style.
  171. prInfoPT                 ds        TPrInfo            ; offset: $20 (32)        ; (14)  Print Time Imaging metrics
  172. prXInfo                     ds        TPrXInfo        ; offset: $2E (46)        ; (16)  Print-time (expanded) Print info record.
  173. prJob                     ds        TPrJob            ; offset: $3E (62)        ; (20) The Print Job request (82)  Total of the above; 120-82 = 38 bytes needed to fill 120
  174. printX                     ds.w    19                ; offset: $52 (82)        ; Spare to fill to 120 bytes!
  175. sizeof                     EQU *                    ; size:   $78 (120)
  176.                         ENDR
  177. ; typedef struct TPrint *                TPPrint
  178.  
  179. ; typedef TPPrint *                        THPrint
  180.  
  181. TPrStatus                RECORD 0
  182. iTotPages                 ds.w    1                ; offset: $0 (0)        ; Total pages in Print File.
  183. iCurPage                 ds.w    1                ; offset: $2 (2)        ; Current page number
  184. iTotCopies                 ds.w    1                ; offset: $4 (4)        ; Total copies requested
  185. iCurCopy                 ds.w    1                ; offset: $6 (6)        ; Current copy number
  186. iTotBands                 ds.w    1                ; offset: $8 (8)        ; Total bands per page.
  187. iCurBand                 ds.w    1                ; offset: $A (10)        ; Current band number
  188. fPgDirty                 ds.b    1                ; offset: $C (12)        ; True if current page has been written to.
  189. fImaging                 ds.b    1                ; offset: $D (13)        ; Set while in band's DrawPic call.
  190. hPrint                     ds.l    1                ; offset: $E (14)        ; Handle to the active Printer record
  191. pPrPort                     ds.l    1                ; offset: $12 (18)        ; Ptr to the active PrPort
  192. hPic                     ds.l    1                ; offset: $16 (22)        ; Handle to the active Picture
  193. sizeof                     EQU *                    ; size:   $1A (26)
  194.                         ENDR
  195. ; typedef struct TPrStatus *            TPPrStatus
  196.  
  197. ; typedef TPPrStatus                     TPPrStatusRef
  198.  
  199.  
  200. ;  Print Status: Print information during printing. 
  201. TPfPgDir                RECORD 0
  202. iPages                     ds.w    1                ; offset: $0 (0)
  203. iPgPos                     ds.l    129                ; offset: $2 (2)        ; ARRAY [0..iPfMaxPgs] OF LONGINT
  204. sizeof                     EQU *                    ; size:   $206 (518)
  205.                         ENDR
  206. ; typedef struct TPfPgDir *                TPPfPgDir
  207.  
  208. ; typedef TPPfPgDir *                    THPfPgDir
  209.  
  210. ;  PicFile = a TPfHeader followed by n QuickDraw Pics (whose PicSize is invalid!) 
  211. ;  This is the Printing Dialog Record. Only used by folks appending their own
  212. ;   DITLs to the print dialogs.    Print Dialog: The Dialog Stream object. 
  213. TPrDlg                    RECORD 0
  214. Dlg                         ds        DialogRecord    ; offset: $0 (0)        ; The Dialog window
  215. pFltrProc                 ds.l    1                ; offset: $AA (170)        ; The Filter Proc.
  216. pItemProc                 ds.l    1                ; offset: $AE (174)        ; The Item evaluating proc.
  217. hPrintUsr                 ds.l    1                ; offset: $B2 (178)        ; The user's print record.
  218. fDoIt                     ds.b    1                ; offset: $B6 (182)
  219. fDone                     ds.b    1                ; offset: $B7 (183)
  220. lUser1                     ds.l    1                ; offset: $B8 (184)        ; Four longs for apps to hang global data.
  221. lUser2                     ds.l    1                ; offset: $BC (188)        ; Plus more stuff needed by the particular
  222. lUser3                     ds.l    1                ; offset: $C0 (192)        ; printing dialog.
  223. lUser4                     ds.l    1                ; offset: $C4 (196)
  224. sizeof                     EQU *                    ; size:   $C8 (200)
  225.                         ENDR
  226. ; typedef struct TPrDlg *                TPPrDlg
  227.  
  228. ; typedef struct TPrDlg *                TPPrDlgRef
  229.  
  230. TGnlData                RECORD 0
  231. iOpCode                     ds.w    1                ; offset: $0 (0)
  232. iError                     ds.w    1                ; offset: $2 (2)
  233. lReserved                 ds.l    1                ; offset: $4 (4)        ; more fields here depending on call
  234. sizeof                     EQU *                    ; size:   $8 (8)
  235.                         ENDR
  236. TRslRg                    RECORD 0
  237. iMin                     ds.w    1                ; offset: $0 (0)
  238. iMax                     ds.w    1                ; offset: $2 (2)
  239. sizeof                     EQU *                    ; size:   $4 (4)
  240.                         ENDR
  241. TRslRec                    RECORD 0
  242. iXRsl                     ds.w    1                ; offset: $0 (0)
  243. iYRsl                     ds.w    1                ; offset: $2 (2)
  244. sizeof                     EQU *                    ; size:   $4 (4)
  245.                         ENDR
  246. TGetRslBlk                RECORD 0
  247. iOpCode                     ds.w    1                ; offset: $0 (0)
  248. iError                     ds.w    1                ; offset: $2 (2)
  249. lReserved                 ds.l    1                ; offset: $4 (4)
  250. iRgType                     ds.w    1                ; offset: $8 (8)
  251. xRslRg                     ds        TRslRg            ; offset: $A (10)
  252. yRslRg                     ds        TRslRg            ; offset: $E (14)
  253. iRslRecCnt                 ds.w    1                ; offset: $12 (18)
  254. rgRslRec                 ds.b    27 * TRslRec.sizeof ; offset: $14 (20)
  255. sizeof                     EQU *                    ; size:   $80 (128)
  256.                         ENDR
  257. TSetRslBlk                RECORD 0
  258. iOpCode                     ds.w    1                ; offset: $0 (0)
  259. iError                     ds.w    1                ; offset: $2 (2)
  260. lReserved                 ds.l    1                ; offset: $4 (4)
  261. hPrint                     ds.l    1                ; offset: $8 (8)
  262. iXRsl                     ds.w    1                ; offset: $C (12)
  263. iYRsl                     ds.w    1                ; offset: $E (14)
  264. sizeof                     EQU *                    ; size:   $10 (16)
  265.                         ENDR
  266. TDftBitsBlk                RECORD 0
  267. iOpCode                     ds.w    1                ; offset: $0 (0)
  268. iError                     ds.w    1                ; offset: $2 (2)
  269. lReserved                 ds.l    1                ; offset: $4 (4)
  270. hPrint                     ds.l    1                ; offset: $8 (8)
  271. sizeof                     EQU *                    ; size:   $C (12)
  272.                         ENDR
  273. TGetRotnBlk                RECORD 0
  274. iOpCode                     ds.w    1                ; offset: $0 (0)
  275. iError                     ds.w    1                ; offset: $2 (2)
  276. lReserved                 ds.l    1                ; offset: $4 (4)
  277. hPrint                     ds.l    1                ; offset: $8 (8)
  278. fLandscape                 ds.b    1                ; offset: $C (12)
  279. bXtra                     ds.b    1                ; offset: $D (13)
  280. sizeof                     EQU *                    ; size:   $E (14)
  281.                         ENDR
  282. ;
  283. ; pascal void PrPurge(void )
  284. ;
  285.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  286.         Macro
  287.         _PrPurge
  288.             move.l              #$A8000000,-(sp)
  289.             dc.w                $A8FD
  290.         EndM
  291.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  292.         IMPORT_CFM_FUNCTION PrPurge
  293.     ENDIF
  294.  
  295. ;
  296. ; pascal void PrNoPurge(void )
  297. ;
  298.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  299.         Macro
  300.         _PrNoPurge
  301.             move.l              #$B0000000,-(sp)
  302.             dc.w                $A8FD
  303.         EndM
  304.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  305.         IMPORT_CFM_FUNCTION PrNoPurge
  306.     ENDIF
  307.  
  308. ;
  309. ; pascal void PrOpen(void )
  310. ;
  311.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  312.         Macro
  313.         _PrOpen
  314.             move.l              #$C8000000,-(sp)
  315.             dc.w                $A8FD
  316.         EndM
  317.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  318.         IMPORT_CFM_FUNCTION PrOpen
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal void PrClose(void )
  323. ;
  324.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  325.         Macro
  326.         _PrClose
  327.             move.l              #$D0000000,-(sp)
  328.             dc.w                $A8FD
  329.         EndM
  330.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  331.         IMPORT_CFM_FUNCTION PrClose
  332.     ENDIF
  333.  
  334. ;
  335. ; pascal void PrintDefault(THPrint hPrint)
  336. ;
  337.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  338.         Macro
  339.         _PrintDefault
  340.             move.l              #$20040480,-(sp)
  341.             dc.w                $A8FD
  342.         EndM
  343.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  344.         IMPORT_CFM_FUNCTION PrintDefault
  345.     ENDIF
  346.  
  347. ;
  348. ; pascal Boolean PrValidate(THPrint hPrint)
  349. ;
  350.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  351.         Macro
  352.         _PrValidate
  353.             move.l              #$52040498,-(sp)
  354.             dc.w                $A8FD
  355.         EndM
  356.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  357.         IMPORT_CFM_FUNCTION PrValidate
  358.     ENDIF
  359.  
  360. ;
  361. ; pascal Boolean PrStlDialog(THPrint hPrint)
  362. ;
  363.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  364.         Macro
  365.         _PrStlDialog
  366.             move.l              #$2A040484,-(sp)
  367.             dc.w                $A8FD
  368.         EndM
  369.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  370.         IMPORT_CFM_FUNCTION PrStlDialog
  371.     ENDIF
  372.  
  373. ;
  374. ; pascal Boolean PrJobDialog(THPrint hPrint)
  375. ;
  376.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  377.         Macro
  378.         _PrJobDialog
  379.             move.l              #$32040488,-(sp)
  380.             dc.w                $A8FD
  381.         EndM
  382.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  383.         IMPORT_CFM_FUNCTION PrJobDialog
  384.     ENDIF
  385.  
  386. ;
  387. ; pascal TPPrDlgRef PrStlInit(THPrint hPrint)
  388. ;
  389.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  390.         Macro
  391.         _PrStlInit
  392.             move.l              #$3C04040C,-(sp)
  393.             dc.w                $A8FD
  394.         EndM
  395.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  396.         IMPORT_CFM_FUNCTION PrStlInit
  397.     ENDIF
  398.  
  399. ;
  400. ; pascal TPPrDlgRef PrJobInit(THPrint hPrint)
  401. ;
  402.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  403.         Macro
  404.         _PrJobInit
  405.             move.l              #$44040410,-(sp)
  406.             dc.w                $A8FD
  407.         EndM
  408.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  409.         IMPORT_CFM_FUNCTION PrJobInit
  410.     ENDIF
  411.  
  412. ;
  413. ; pascal void PrJobMerge(THPrint hPrintSrc, THPrint hPrintDst)
  414. ;
  415.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  416.         Macro
  417.         _PrJobMerge
  418.             move.l              #$5804089C,-(sp)
  419.             dc.w                $A8FD
  420.         EndM
  421.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  422.         IMPORT_CFM_FUNCTION PrJobMerge
  423.     ENDIF
  424.  
  425. ;
  426. ; pascal Boolean PrDlgMain(THPrint hPrint, PDlgInitUPP pDlgInit)
  427. ;
  428.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  429.         Macro
  430.         _PrDlgMain
  431.             move.l              #$4A040894,-(sp)
  432.             dc.w                $A8FD
  433.         EndM
  434.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  435.         IMPORT_CFM_FUNCTION PrDlgMain
  436.     ENDIF
  437.  
  438. ;
  439. ; pascal TPPrPortRef PrOpenDoc(THPrint hPrint, TPPrPortRef pPrPort, Ptr pIOBuf)
  440. ;
  441.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  442.         Macro
  443.         _PrOpenDoc
  444.             move.l              #$04000C00,-(sp)
  445.             dc.w                $A8FD
  446.         EndM
  447.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  448.         IMPORT_CFM_FUNCTION PrOpenDoc
  449.     ENDIF
  450.  
  451. ;
  452. ; pascal void PrCloseDoc(TPPrPortRef pPrPort)
  453. ;
  454.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  455.         Macro
  456.         _PrCloseDoc
  457.             move.l              #$08000484,-(sp)
  458.             dc.w                $A8FD
  459.         EndM
  460.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  461.         IMPORT_CFM_FUNCTION PrCloseDoc
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal void PrOpenPage(TPPrPortRef pPrPort, TPRect pPageFrame)
  466. ;
  467.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  468.         Macro
  469.         _PrOpenPage
  470.             move.l              #$10000808,-(sp)
  471.             dc.w                $A8FD
  472.         EndM
  473.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  474.         IMPORT_CFM_FUNCTION PrOpenPage
  475.     ENDIF
  476.  
  477. ;
  478. ; pascal void PrClosePage(TPPrPortRef pPrPort)
  479. ;
  480.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  481.         Macro
  482.         _PrClosePage
  483.             move.l              #$1800040C,-(sp)
  484.             dc.w                $A8FD
  485.         EndM
  486.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  487.         IMPORT_CFM_FUNCTION PrClosePage
  488.     ENDIF
  489.  
  490. ;
  491. ; pascal void PrPicFile(THPrint hPrint, TPPrPortRef pPrPort, Ptr pIOBuf, Ptr pDevBuf, TPPrStatusRef prStatus)
  492. ;
  493.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  494.         Macro
  495.         _PrPicFile
  496.             move.l              #$60051480,-(sp)
  497.             dc.w                $A8FD
  498.         EndM
  499.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  500.         IMPORT_CFM_FUNCTION PrPicFile
  501.     ENDIF
  502.  
  503. ;
  504. ; pascal short PrError(void )
  505. ;
  506.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  507.         Macro
  508.         _PrError
  509.             move.l              #$BA000000,-(sp)
  510.             dc.w                $A8FD
  511.         EndM
  512.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  513.         IMPORT_CFM_FUNCTION PrError
  514.     ENDIF
  515.  
  516. ;
  517. ; pascal void PrSetError(short iErr)
  518. ;
  519.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  520.         Macro
  521.         _PrSetError
  522.             move.l              #$C0000200,-(sp)
  523.             dc.w                $A8FD
  524.         EndM
  525.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  526.         IMPORT_CFM_FUNCTION PrSetError
  527.     ENDIF
  528.  
  529. ;
  530. ; pascal void PrGeneral(Ptr pData)
  531. ;
  532.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  533.         Macro
  534.         _PrGeneral
  535.             move.l              #$70070480,-(sp)
  536.             dc.w                $A8FD
  537.         EndM
  538.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  539.         IMPORT_CFM_FUNCTION PrGeneral
  540.     ENDIF
  541.  
  542. ;
  543. ; pascal void PrDrvrOpen(void )
  544. ;
  545.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  546.         Macro
  547.         _PrDrvrOpen
  548.             move.l              #$80000000,-(sp)
  549.             dc.w                $A8FD
  550.         EndM
  551.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  552.         IMPORT_CFM_FUNCTION PrDrvrOpen
  553.     ENDIF
  554.  
  555. ;
  556. ; pascal void PrDrvrClose(void )
  557. ;
  558.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  559.         Macro
  560.         _PrDrvrClose
  561.             move.l              #$88000000,-(sp)
  562.             dc.w                $A8FD
  563.         EndM
  564.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  565.         IMPORT_CFM_FUNCTION PrDrvrClose
  566.     ENDIF
  567.  
  568. ;
  569. ; pascal void PrCtlCall(short iWhichCtl, long lParam1, long lParam2, long lParam3)
  570. ;
  571.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  572.         Macro
  573.         _PrCtlCall
  574.             move.l              #$A0000E00,-(sp)
  575.             dc.w                $A8FD
  576.         EndM
  577.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  578.         IMPORT_CFM_FUNCTION PrCtlCall
  579.     ENDIF
  580.  
  581. ;
  582. ; pascal Handle PrDrvrDCE(void )
  583. ;
  584.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  585.         Macro
  586.         _PrDrvrDCE
  587.             move.l              #$94000000,-(sp)
  588.             dc.w                $A8FD
  589.         EndM
  590.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  591.         IMPORT_CFM_FUNCTION PrDrvrDCE
  592.     ENDIF
  593.  
  594. ;
  595. ; pascal short PrDrvrVers(void )
  596. ;
  597.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  598.         Macro
  599.         _PrDrvrVers
  600.             move.l              #$9A000000,-(sp)
  601.             dc.w                $A8FD
  602.         EndM
  603.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  604.         IMPORT_CFM_FUNCTION PrDrvrVers
  605.     ENDIF
  606.  
  607. ;
  608. ; pascal short PrLoadDriver(void )
  609. ;
  610.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  611.         Macro
  612.         _PrLoadDriver
  613.             move.l              #$D8000000,-(sp)
  614.             dc.w                $A8FD
  615.         EndM
  616.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  617.         IMPORT_CFM_FUNCTION PrLoadDriver
  618.     ENDIF
  619.  
  620.  
  621.     ENDIF ; __PRINTING__ 
  622.  
  623.